]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ci: Add commit rule to not end subject with punctuation
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 26 Feb 2021 13:46:22 +0000 (14:46 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 26 Feb 2021 13:59:07 +0000 (14:59 +0100)
I recently forgot to fill in the subject after the prefix. Add a
commit rule for catching this and other cases where subject lines
end in punctuation (except ...)

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1722>

.gitlab-ci/commit-rules.yml

index 9770f45152a728583a3188d17897b8bf5353eb5c..5828f8ad540a1b47489087307c5d47bcc5e007c6 100644 (file)
@@ -11,3 +11,6 @@ patterns:
     - regex: '^\S*\.(js|c|h):'
       message: Commit message subject prefix should not include .c, .h etc.
       where: subject
+    - regex: '([^.]\.|[:,;])\s*$'
+      message: Commit message subject should not end with punctuation
+      where: subject